using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._NetworkDiagramTools
{
    /// <summary>
    /// <para>Change Diagrams Owner</para>
    /// <para>Changes ownership of stored network diagrams.</para>
    /// <para>更改存储的网络逻辑示意图的所有权。</para>
    /// </summary>    
    [DisplayName("Change Diagrams Owner")]
    public class ChangeDiagramsOwner : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ChangeDiagramsOwner()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_diagrams">
        /// <para>Input Network or Network Diagram Layer</para>
        /// <para>The input network layer or network diagram layer related to the utility network or trace network of interest with the stored network diagrams whose ownership will be transferred.</para>
        /// <para>与感兴趣的公共设施网络或追踪网络相关的输入网络图层或网络逻辑示意图图层，其所有权将被转移。</para>
        /// </param>
        /// <param name="_target_owner">
        /// <para>Target Owner</para>
        /// <para>The name of the user that will become the new owner of the specified diagrams.</para>
        /// <para>将成为指定关系图的新所有者的用户的名称。</para>
        /// </param>
        public ChangeDiagramsOwner(object _in_diagrams, object _target_owner)
        {
            this._in_diagrams = _in_diagrams;
            this._target_owner = _target_owner;
        }
        public override string ToolboxName => "Network Diagram Tools";

        public override string ToolName => "Change Diagrams Owner";

        public override string CallName => "nd.ChangeDiagramsOwner";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_diagrams, _target_owner, _source_owner, _diagram_names, _out_diagrams];

        /// <summary>
        /// <para>Input Network or Network Diagram Layer</para>
        /// <para>The input network layer or network diagram layer related to the utility network or trace network of interest with the stored network diagrams whose ownership will be transferred.</para>
        /// <para>与感兴趣的公共设施网络或追踪网络相关的输入网络图层或网络逻辑示意图图层，其所有权将被转移。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network or Network Diagram Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_diagrams { get; set; }


        /// <summary>
        /// <para>Target Owner</para>
        /// <para>The name of the user that will become the new owner of the specified diagrams.</para>
        /// <para>将成为指定关系图的新所有者的用户的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target Owner")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _target_owner { get; set; }


        /// <summary>
        /// <para>Source Owner</para>
        /// <para><xdoc>
        ///   <para>The name of the user whose ownership of the network diagrams will be changed.</para>
        ///   <para>This parameter is only used when there are no specified diagram names. When diagram names are specified, it will be ignored.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>将更改其网络逻辑示意图所有权的用户的名称。</para>
        ///   <para>仅当没有指定的逻辑示意图名称时，才使用此参数。指定逻辑示意图名称时，将忽略该名称。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Source Owner")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _source_owner { get; set; } = null;


        /// <summary>
        /// <para>Diagram Names</para>
        /// <para>The names of the diagrams to be processed.</para>
        /// <para>要处理的逻辑示意图的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Diagram Names")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public List<object> _diagram_names { get; set; } = null;


        /// <summary>
        /// <para>Output Network or Network Diagram Layer</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network or Network Diagram Layer")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_diagrams { get; set; }


        public ChangeDiagramsOwner SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}